package com.ruijie.camerax.media;

import android.media.MediaCodec;

/**
 * author: luqihua
 * date:2019-11-12
 * description:
 **/
public class VideoFrame {
    byte[] frameBytes;
    int offset;
    int size;
    long presentationTimeUs;
    int flags;

    public VideoFrame(byte[] frameBytes, MediaCodec.BufferInfo bufferInfo) {
        this.frameBytes = frameBytes;
        this.offset = bufferInfo.offset;
        this.size = bufferInfo.size;
        this.presentationTimeUs = bufferInfo.presentationTimeUs;
        this.flags = bufferInfo.flags;
    }
}
